package com.ssy.lingxi.order.repository;

import com.ssy.lingxi.order.entity.DeliveryOuterHistoryDO;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *  送货相关外部流转记录jpa仓库
 * @author czh
 * @date 2022/2/21
 * @version 2.0.0
 */
@Repository
public interface DeliveryOuterHistoryRepository extends JpaRepository<DeliveryOuterHistoryDO, Long>, JpaSpecificationExecutor<DeliveryOuterHistoryDO> {

    List<DeliveryOuterHistoryDO> findByOrderIdAndDeliveryHistoryType(Long orderId,Integer type, Sort sort);

}
